const GEEK_PC_TOKEN = 'geek-pc-token'
export const setToken = (token) => {
  localStorage.setItem(GEEK_PC_TOKEN, token)
}
export const getToken = () => {
  return localStorage.getItem(GEEK_PC_TOKEN)
}

export const removeToken = () => {
  localStorage.removeItem(GEEK_PC_TOKEN)
}

export const hasToken = () => {
  return !!getToken()
}
